module.exports = {
  publicPath: '/',
  configureWebpack: {
    externals: {
      // vue: 'Vue',
      // vuex: 'Vuex',
      // axios: 'axios',
      // 'vue-router': 'VueRouter',
      // 'element-ui': 'ELEMENT',
      // 'window.jQuery': 'jquery',
    }
  },
  productionSourceMap:false,
  devServer: {
    proxy: {
      '/api': {
        // target: 'http://192.168.0.230:8480/',
        target: 'http://192.168.0.60:8580/',
        ws: true,
        changeOrigin: true,
        pathRewrite: {
          '^/api': ''
        }
      }
    }
  },
  chainWebpack: config => {
    // 移除 prefetch 插件
    config.plugins.delete('prefetch')
  }
}